package org.dromara.solonplugins.job.test3.job;


import org.dromara.solonplugins.job.IJobHandler;
import org.noear.solon.annotation.Component;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * 本示例因为采用了自定义Job来源，所以@JobHandler注解不需要了，因此注释掉。当然继续带着也并无影响
 *
 * @author: aoshiguchen
 */
@Component
//@JobHandler(name = "JobDemo1", cron = "0/5 * * * * ?", param = "我是默认参数")
public class JobDemo1 implements IJobHandler {
    private static final Logger log = LoggerFactory.getLogger(JobDemo1.class);

    @Override
    public void execute(String param) throws Exception {
        log.info("JobDemo1 参数：{}", param);
    }

}
